<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddFieldToAdminUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('admin_users', function (Blueprint $table) {

            $table->string('phone', 20)->nullable()->comment('联系电话');
            $table->text('major')->nullable()->comment('专业领域');
            $table->string('address')->nullable()->comment('地址');
            $table->longText('about')->nullable()->comment('简介');
            $table->string('company')->nullable()->comment('企业');
            $table->integer('order')->default(0)->comment('顺序序号');
            $table->string('bank', 50)->nullable()->comment('开户银行');
            $table->string('bank_account', 50)->nullable()->comment('银行账号');
            $table->string('fax', 20)->nullable()->comment('传真');
            $table->longText('remark')->nullable()->comment('备注');

            $table->text('data')->nullable()->comment('其它');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('admin_users', function (Blueprint $table) {
            //
        });
    }
}
